#include <SmegCore/Game/Game.hpp>
#include "Test_FSMGameImpl.hpp"

#include <time.h>

#include <SFML/Window/VideoMode.hpp>

#include "Entity\Miner.hpp"
#include "Entity\MinerWife.hpp"

int main () {
    srand( time(NULL) );

    smeg::core::Game::GetInstance()->Init( Test_FSMGameImpl(), sf::VideoMode( 1000, 800 ), "FSM Test" );

    Miner* pMiner = new Miner();
    MinerWife* pMinerWife = new MinerWife();

    pMiner->SetWife( pMinerWife );
    pMinerWife->SetHusband( pMiner );

    smeg::core::Game::GetInstance()->GameLoop();

    delete pMiner;
    delete pMinerWife;

    smeg::core::Game::GetInstance()->DeInit();

    return EXIT_SUCCESS;
}